using System;
namespace GameServer.Common.Physics
{
    public class Velocity
    {

        public double speed;
        public double direction;

        public Velocity()
        {
            speed = 0;
            direction = 0;
        }

        public Velocity(double speed, double direction)
        {
            this.speed = speed;
            this.direction = direction;
        }

        public Vector2 GetVector()
        {
            Vector2 vector = new Vector2(Math.Cos(direction / 180.0 * Math.PI) * speed, Math.Sin(direction / 180.0 * Math.PI) * speed);
            return vector;
        }
    }
}
